﻿using AutoMapper;
using BW.MesProject.BasicData.Application;
using BW.MesProject.BasicData.Domain.基础;

namespace BW.MesProject.BasicData.Host
{
    /// <summary>
    /// AutoMapper配置类
    /// 用于配置对象映射关系
    /// </summary>
    public class AutoMap:Profile
    {
        /// <summary>
        /// 构造函数
        /// 配置实体与服务之间的映射关系
        /// </summary>
        public AutoMap()
        {
            #region 基础数据
            CreateMap<Workshopmanagementmodel, WorkShopServices>();
            CreateMap<ProductionlineModel, ProductionlineServices>();
            CreateMap<WorkstationManagement, WorkstationManagServices>();
            CreateMap<Materialgroupmodel, MaterialgroupServices>();
            #endregion
        }
    }
}
